﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMaster.Master" AutoEventWireup="true" CodeBehind="QLLichBay.aspx.cs" Inherits="QLVMBAY.Admin.QLLichBay" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentAdmin" runat="server">
    <style type="text/css">
        .style3
        {
            width: 149px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="PageName">QUẢN LÝ LỊCH BAY</div>
<asp:Panel ID="pnView" runat="server">
<div class="Control">
<ul><li><asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" onclick="AddButton_Click">Thêm mới</asp:LinkButton></li>
<li> <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" onclick="RefreshButton_Click">Làm mới</asp:LinkButton></li>
</ul></div>
<asp:Datagrid ID="grdLichBay" runat="server" width="100%" CssClass="TableView" 
        AutoGenerateColumns="False" onitemdatabound="grdLichBay_ItemDataBound" 
        onitemcommand="grdLichBay_ItemCommand" 
        onpageindexchanged="grdLichBay_PageIndexChanged" AllowPaging="True" 
        AllowSorting="True"> <HeaderStyle CssClass="trHeader" 
        HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle> <ItemStyle CssClass="trOdd"></ItemStyle> <AlternatingItemStyle CssClass="trEven"></AlternatingItemStyle>
         <Columns>
<asp:BoundColumn DataField="MaChuyenBay" HeaderText="Mã Chuyến Bay" 
            ItemStyle-CssClass="TextShort" Visible="true">     <ItemStyle CssClass="TextShort" />
        </asp:BoundColumn>
<asp:BoundColumn DataField="TenChuyenBay" HeaderText="Tên Chuyến Bay" 
            ItemStyle-CssClass="Text" Visible="true" >
            
    <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
<asp:TemplateColumn ItemStyle-CssClass="Text"><HeaderTemplate>Tuyến bay</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblTenTB" runat="server"  Text=" Label">
    </asp:Label>
</ItemTemplate>
    <ItemStyle CssClass="Text" />
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-CssClass="Text"><HeaderTemplate>Hãng bay</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblTenHang" runat="server"  Text=" Label">
    </asp:Label>
</ItemTemplate>
    <ItemStyle CssClass="Text" />
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-CssClass="Date"><HeaderTemplate>Ngày bay</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblNgayBay" runat="server"  Text=" Label">
    </asp:Label>    
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-CssClass="Time"><HeaderTemplate>Giờ khởi hành</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblTgKhoiHanh" runat="server"  Text=" Label">
    </asp:Label>
</ItemTemplate>
</asp:TemplateColumn> 
<asp:TemplateColumn ItemStyle-CssClass="Time"><HeaderTemplate>Thời gian bay</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblTgBay" runat="server"  Text=" Label">
    </asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="SLHanhKhach" HeaderText="SL Hành khách" 
            ItemStyle-CssClass="Number" Visible="true" >
    <ItemStyle CssClass="Number" />
        </asp:BoundColumn>        

<asp:TemplateColumn ItemStyle-CssClass="Function"> <HeaderTemplate>Chức năng</HeaderTemplate> 
<ItemTemplate>
    <asp:ImageButton ID="cmdEdit" runat="server" AlternateText="Sửa" CommandName="Edit" CssClass="Edit" ToolTip="Sửa" ImageUrl="/App_Themes/Admin/images/edit.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"MaChuyenBay")%>' />
    <asp:ImageButton ID="cmdDelete" runat="server" AlternateText="Xóa" CommandName="Delete" CssClass="Delete" ToolTip="Xóa" ImageUrl="/App_Themes/Admin/images/delete.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"MaChuyenBay")%>' OnClientClick="javascript:return confirm('Bạn có muốn xóa?');" />
</ItemTemplate>     
    <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
        Font-Strikeout="False" Font-Underline="False" Wrap="False" />
    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" 
        Font-Strikeout="False" Font-Underline="False" Wrap="False" />
    <ItemStyle CssClass="Function" Font-Bold="False" Font-Italic="False" 
        Font-Overline="False" Font-Strikeout="False" Font-Underline="False" 
        Wrap="False" />
</asp:TemplateColumn>
</Columns>
</asp:Datagrid>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="false">
<table class="TableUpdate" border="0">
<tr> <th class="style3"> <asp:Label ID="lblMaCB" runat="server" Text="Mã chuyến bay:"></asp:Label></th>
    <td><asp:TextBox ID="txtMaCB" runat="server" CssClass="text" Width="380px"></asp:TextBox><asp:RequiredFieldValidator ID="rfvMaCB" runat="server" ControlToValidate="txtMaCB" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr>
<tr> <th class="style3"> <asp:Label ID="lblTenCB" runat="server" Text="Tên chuyến bay:"></asp:Label></th>
    <td><asp:TextBox ID="txtTenCB" runat="server" CssClass="text" Width="380px"></asp:TextBox><asp:RequiredFieldValidator ID="rfvTenCB" runat="server" ControlToValidate="txtTenCB" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr>   
<tr> <th class="style3"> <asp:Label ID="lblTenTB" runat="server" Text="Tuyến bay:"></asp:Label></th>
    <td>
        <asp:DropDownList ID="dlTuyenBay" runat="server" Width="380px">            
        </asp:DropDownList>
</td></tr>
<tr> <th class="style3"> <asp:Label ID="Label1" runat="server" Text="Hãng hàng không:"></asp:Label></th>
    <td>
        <asp:DropDownList ID="dlHangBay" runat="server" Width="380px">            
        </asp:DropDownList>
</td></tr>
<tr> <th class="style3"> <asp:Label ID="lblNgayBay" runat="server" Text="Ngày bay:"></asp:Label></th>
    <td><asp:TextBox ID="txtNgayBay" runat="server" CssClass="text date" Width="130px"/>
</td></tr>
<tr> <th class="style3"> <asp:Label ID="lblGioBay" runat="server" Text="Giờ bay:"></asp:Label></th>
    <td align="left">
        <asp:DropDownList ID="dllGioBay1" runat="server" Width="50px">
        </asp:DropDownList>
        &nbsp;Giờ:&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="dllGioBay2" runat="server" Width="50px">
        </asp:DropDownList>
        &nbsp;Phút:</td></tr>
<tr> <th class="style3"> <asp:Label ID="Label2" runat="server" Text="Thời gian bay:"></asp:Label></th>
    <td>
        <asp:DropDownList ID="dllTGBay1" runat="server" Width="50px">
        </asp:DropDownList>
        &nbsp;Giờ:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="dllTGBay2" runat="server" Width="50px">
        </asp:DropDownList>
        &nbsp;Phút:</td></tr>
<tr> <th class="style3"> <asp:Label ID="Label3" runat="server" Text="Số lượng hành khách:"></asp:Label></th>
    <td><asp:TextBox ID="txtSLHK" runat="server" CssClass="text number" Width="130px"></asp:TextBox></td></tr>
<tr> <td class="Control" colspan="2"><ul><li><asp:LinkButton CssClass="update" ID="lbtUpdate" runat="server" onclick="Update_Click">Ghi lại</asp:LinkButton></li>
 <li> <asp:LinkButton CssClass="uback" ID="lbtBack" runat="server"  onclick="Back_Click" CausesValidation="False">Trở về</asp:LinkButton></li> </ul></td> </tr></table>
</asp:Panel>
</asp:Content>
